package com.ruoyi.cost.service.impl;

import java.util.List;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.cost.mapper.AccGenLedgerBasicInMapper;
import com.ruoyi.cost.domain.AccGenLedgerBasicIn;
import com.ruoyi.cost.service.IAccGenLedgerBasicInService;

/**
 * 总账基础信息Service业务层处理
 * 
 * @author 王志旸
 * @date 2024-07-09
 */
@Service
public class AccGenLedgerBasicInServiceImpl  extends ServiceImpl<AccGenLedgerBasicInMapper,AccGenLedgerBasicIn> implements IAccGenLedgerBasicInService



{
    @Autowired
    private AccGenLedgerBasicInMapper accGenLedgerBasicInMapper;

    /**
     * 查询总账基础信息
     * 
     * @param structuralDelimiter 总账基础信息主键
     * @return 总账基础信息
     */
    @Override
    public AccGenLedgerBasicIn selectAccGenLedgerBasicInByStructuralDelimiter(String structuralDelimiter)
    {
        return accGenLedgerBasicInMapper.selectAccGenLedgerBasicInByStructuralDelimiter(structuralDelimiter);
    }

    /**
     * 查询总账基础信息列表
     * 
     * @param accGenLedgerBasicIn 总账基础信息
     * @return 总账基础信息
     */
    @Override
    public List<AccGenLedgerBasicIn> selectAccGenLedgerBasicInList(AccGenLedgerBasicIn accGenLedgerBasicIn)
    {
        return accGenLedgerBasicInMapper.selectAccGenLedgerBasicInList(accGenLedgerBasicIn);
    }

    /**
     * 新增总账基础信息
     * 
     * @param accGenLedgerBasicIn 总账基础信息
     * @return 结果
     */
    @Override
    public int insertAccGenLedgerBasicIn(AccGenLedgerBasicIn accGenLedgerBasicIn)
    {
        return accGenLedgerBasicInMapper.insertAccGenLedgerBasicIn(accGenLedgerBasicIn);
    }

    /**
     * 修改总账基础信息
     * 
     * @param accGenLedgerBasicIn 总账基础信息
     * @return 结果
     */
    @Override
    public int updateAccGenLedgerBasicIn(AccGenLedgerBasicIn accGenLedgerBasicIn)
    {
        return accGenLedgerBasicInMapper.updateAccGenLedgerBasicIn(accGenLedgerBasicIn);
    }

    /**
     * 批量删除总账基础信息
     * 
     * @param structuralDelimiters 需要删除的总账基础信息主键
     * @return 结果
     */
    @Override
    public int deleteAccGenLedgerBasicInByStructuralDelimiters(String[] structuralDelimiters)
    {
        return accGenLedgerBasicInMapper.deleteAccGenLedgerBasicInByStructuralDelimiters(structuralDelimiters);
    }

    /**
     * 删除总账基础信息信息
     * 
     * @param structuralDelimiter 总账基础信息主键
     * @return 结果
     */
    @Override
    public int deleteAccGenLedgerBasicInByStructuralDelimiter(String structuralDelimiter)
    {
        return accGenLedgerBasicInMapper.deleteAccGenLedgerBasicInByStructuralDelimiter(structuralDelimiter);
    }
}
